const koa=require('koa');
const cors=require('koa-cors');
const bodyparser=require('koa-bodyparser')
const router=require('koa-router')();
const {Product,sync}=require('./model')

Product.sync=async (ctx,next)=>{
    Product.BulkCreate
      
 
}




let app=new koa();

app.use(cors());
app.use(bodyparser());
app.use(routerMiddle());

let port =3000;
app.listen(port);
console.log(`该服务器运行于:http://localhost:${port}`);